package zzz.model;

import java.util.Date;

public class Post {

	private int postId;
	private int userId;
	private String postTitle;
	private String postMain;
	private Date postTime;
	private String postCode;
	private User user;
	private int replyCnt;
	public Post() {
		super();
	}
	
	public Post(int postId, int userId, String postTitle, String postMain, Date postTime, String postCode, User user,
			int replyCnt) {
		super();
		this.postId = postId;
		this.userId = userId;
		this.postTitle = postTitle;
		this.postMain = postMain;
		this.postTime = postTime;
		this.postCode = postCode;
		this.user = user;
		this.replyCnt = replyCnt;
	}

	@Override
	public String toString() {
		return "Post [postId=" + postId + ", userId=" + userId + ", postTitle=" + postTitle + ", postMain=" + postMain
				+ ", postTime=" + postTime + ", postCode=" + postCode + ", user=" + user + ", replyCnt=" + replyCnt
				+ "]";
	}

	public int getReplyCnt() {
		return replyCnt;
	}

	public void setReplyCnt(int replyCnt) {
		this.replyCnt = replyCnt;
	}

	public User getUser() {
		return user;
	}





	public void setUser(User user) {
		this.user = user;
	}





	public String getPostCode() {
		return postCode;
	}


	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}


	public int getPostId() {
		return postId;
	}
	public void setPostId(int postId) {
		this.postId = postId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getPostTitle() {
		return postTitle;
	}
	public void setPostTitle(String postTitle) {
		this.postTitle = postTitle;
	}
	public String getPostMain() {
		return postMain;
	}
	public void setPostMain(String postMain) {
		this.postMain = postMain;
	}
	public Date getPostTime() {
		return postTime;
	}
	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}
	
}
